<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<form:form commandName="listRecords" cssClass="form-horizontal" role="form">
	<c:if test="${not empty listRecords}">
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right" style="color: #761c19">反馈情况列表:</label>
		</div>
	</c:if>
	<c:forEach items="${listRecords}" var="listRecords" >
		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">时间</label>
			<div class="col-sm-4">
				<input type="text"  value="${listRecords.datatime}"
					   placeholder="" readonly="readonly"  class="form-control " >
			</div>
			<div class="col-sm-3">
				<button type="button" class="btn btn-sm btn-primary downloadFile" data-id="${listRecords.taxproof}" style="width: 100%;">下载附件</button>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">完成情况</label>
			<div class="col-sm-10">
				<%--<input type="text" value="${listRecords.record}"--%>
					   <%--placeholder="完成情况" readonly="readonly"  class="form-control" >--%>
				<textarea  rows="2"  readonly="readonly" placeholder=""   class="form-control " >${listRecords.record}</textarea>
			</div>
		</div>

		<div class="form-group">
			<label class="col-sm-2 control-label no-padding-right">反馈信息</label>
			<div class="col-sm-10">
				<textarea  rows="2"   readonly="readonly" placeholder=""   class="form-control " >${listRecords.feedbackInfo}</textarea>

			</div>
		</div>

		<hr width="100%;height:2px;">
	</c:forEach>
	<form:hidden path="sysId"/>
</form:form>

<script type="text/javascript">
    /**
     * 下载
     */
    $(".downloadFile").click(function () {
        var id = $(this).data("id");
        // console.log(id)
        var url = "/communal/download/" + id;
        window.open(url);
    });



    jQuery(function($) {
        $('.date-picker').datepicker({
            inline: true,
            format:"yyyymmdd",
            autoclose: true,
            todayHighlight: true,
            language: 'cn'
        }).next().on(ace.click_event, function(){
            $(this).prev().focus();
        });

        $(".downloadFile").each(function(){
            if(isEmpty($(this).data("id"))){
                $(this).attr("style","display:none;");
            }
        });

    });

	//更新操作
	$("#showDetail").click(function () {
		showEditView();
	});
</script>